using UnityEngine;

namespace Verse;

public class DesignationDef : Def
{
	[NoTranslate]
	public string texturePath;

	public TargetType targetType;

	public bool removeIfBuildingDespawned;

	public bool designateCancelable = true;

	public bool shouldBatchDraw = true;

	[Unsaved(false)]
	public Material iconMat;

	public override void ResolveReferences()
	{
		base.ResolveReferences();
		LongEventHandler.ExecuteWhenFinished(delegate
		{
			iconMat = MaterialPool.MatFrom(texturePath, ShaderDatabase.MetaOverlay);
		});
	}
}
